package com.example.demo.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.custom.BaseService;
import com.example.demo.entity.Position;
import com.example.demo.entity.SysDept;
import com.example.demo.repository.PositionRepository;

@Service
public class PositionService extends BaseService<Position,Integer>{
	@Autowired 
	private PositionRepository posiDao;
	
	public List<Position> findByDept(SysDept dept){
		return posiDao.findByDept(dept);
	}
	
}
